package main

/*
* Author: JacksonCoder
* CreateTime: 2024/11/30
 */

func IfOnly(age int) {
	if age >= 18 {
		println("成年了!!!")
	}
}

func IfElse(age int) string {
	if age >= 18 {
		println("成年了!!!")
		return " "
	} else {
		print("小孩子！！！")
	}

	return ""
}

func IfNewVariable(start int, end int) string {
	if distance := end - start; distance > 100 {
		return "太远了"
	} else if distance > 60 {
		return "有点远"
	} else {
		return "还行"
	}
	//println(distance)
	return ""
}
